package com.kb.erp.mapper.pg;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kb.erp.domain.other.CrmWaitInvoiceData;
import com.kb.erp.domain.other.CrmWaitInvoiceDetails;
import com.kb.erp.entity.crm.CrmDocumentEntity;
import com.kb.erp.entity.crm.Invoice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CrmToK3Mapper extends BaseMapper<Invoice> {

    List<CrmWaitInvoiceDetails> queryWaitInvoiceList(Integer recId);
    public CrmDocumentEntity queryDocument(String fileId);
    @Select("select * from CRM_Invoice where invoiceNumber=#{invoiceNumber}")
    public Invoice queryInvoiceByInvoiceNumber(String invoiceNumber);

}
